﻿

CREATE FUNCTION [dbo].[GetSursaFinantare] (@Cont TipCont)  
RETURNS varchar(1) AS  
BEGIN 
DECLARE @ret varchar(1)
SET @ret=''
IF LEN(@Cont) >= 11
	SET @ret = SUBSTRING(LTRIM(RTRIM(@Cont)),10,1)
return @ret
END